package com.lytis.zoovideo.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author :DongPeiLei
 * @description :
 * @create :2022-06-05 21:52:00
 */
@Data
public class CommentVo {
    /**
     * 评论id
     */
    @TableId
    private Integer id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 点赞数量
     */
    private Long likes;
    /**
     * 评论时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /*
     * 用户信息
     * */
    private String userName;

    /*点赞用户列表*/
    private List<Integer> likedUserList;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
